package itsm.isperp.module.entity.db;

import itsm.isperp.framework.domain.IBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 实体字段控件
 * 
 * @author lizx
 * @date 2013-5-20
 */
@Entity
@Table(name = "db_entity_field_control")
public class DbEntityFieldControl implements IBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public static final String CONTROL_TYPE_SELECT="select";
	public static final String CONTROL_TYPE_TREE="tree";
	

	@Id
	String id;
	@Column
	String dbEntityFieldId;
	@Column
	String controlType;
	@Column
	String datasourceEntityId;
	@Column
	String valueField;
	@Column
	String displayField;
	@Column
	String filter;
	@Column
	String contentValue;

	@Override
	public String getId() {
		return id;
	}

	public String getDbEntityFieldId() {
		return dbEntityFieldId;
	}

	public String getControlType() {
		return controlType;
	}

	public String getDatasourceEntityId() {
		return datasourceEntityId;
	}

	public String getValueField() {
		return valueField;
	}

	public String getDisplayField() {
		return displayField;
	}

	public String getFilter() {
		return filter;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public void setDbEntityFieldId(String dbEntityFieldId) {
		this.dbEntityFieldId = dbEntityFieldId;
	}

	public void setControlType(String controlType) {
		this.controlType = controlType;
	}

	public void setDatasourceEntityId(String datasourceEntityId) {
		this.datasourceEntityId = datasourceEntityId;
	}

	public void setValueField(String valueField) {
		this.valueField = valueField;
	}

	public void setDisplayField(String displayField) {
		this.displayField = displayField;
	}

	public void setFilter(String filter) {
		this.filter = filter;
	}

	public String getContentValue() {
		return contentValue;
	}

	public void setContentValue(String contentValue) {
		this.contentValue = contentValue;
	}

}
